import {baseRequest} from '@/utils/request'

const request = (url, ...arg) => baseRequest(`/process/version/content/` + url, ...arg)

export default {
	async getById(data) {
		return await request('get_by_id', data, 'post')
	},
	async saveXml(data) {
		return await request('save_xml', data, 'post')
	},
	async getCurrentInputDefine(data){
		return await request('get_current_input_define', data, 'post')
	},
	async getProcessEventInputDefine(data){
		return await request('get_process_event_input_define', data, 'post')
	},
	async getCurrentOutputDefine(data){
		return await request('get_current_output_define', data, 'post')
	},
	async getNextTransforms(data){
		return await request('get_next_transforms', data, 'post')
	},
	async buildScripts(data){
		return await request('build_scripts', data, 'post')
	},
	async check(data){
		return await request('check', data, 'post')
	},

	async getCurrentInputDefineGroup(data){
		return await request('get_current_input_define_group', data, 'post')
	}

}

